<?php
namespace models\repositories;
use Doctrine\ORM\EntityRepository;
use entities;
class BerkasLasRepository extends EntityRepository {

	/**
     * @inheritdoc
     */
    public function findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null)
    {
        $orderBy = $orderBy === null ? array('id' => 'desc') : $orderBy;
        return parent::findBy($criteria, $orderBy, $limit, $offset);
    }
	
	public function findAll($orderBy=null){		
		return $this->findBy(array(), $orderBy);
	}
}

